package com.aliyun.service;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import com.aliyun.dao.NikeDao;

@Transactional  
@Component("nikeService")
public class NikeService {
	@Resource
	NikeDao nikeDao;
	public int insertNikeOrderDetail(Map<String,String> map)throws SQLException{
		return nikeDao.insertNikeOrderDetail(map);
	}
	public int insertNikeOrder(Map<String,String> map)throws SQLException{
		return nikeDao.insertNikeOrder(map);
	}
	public Map<String, Object> getOneNikeOrder() throws SQLException{
		return nikeDao.getOneNikeOrder();  
	}
	public List<Map<String, Object>> getAllNikeOrder(Map<String,String> map) throws SQLException{
		return nikeDao.getAllNikeOrder(map);  
	}
	public List<Map<String, Object>> getAllNikeOrderDetail(Map<String,String> map) throws SQLException{
		return nikeDao.getAllNikeOrderDetail(map);  
	}
	public List<Map<String, Object>> getAllBaiLian() throws SQLException{
		return nikeDao.getAllBaiLian();  
	}
}
